import{d as f,e as x,a as d,P as l,Q as c,R as e,$ as a,X as o,a5 as i,ab as h,a2 as k,a8 as v,a9 as g,S as m}from"./elementPlusModules.js";import{_ as y}from"./index.js";import"./lodashModules.js";import"./vxeTableModules.js";const _=s=>(v("data-v-3c9a8f2e"),s=s(),g(),s),w={class:"block text-center"},S=_(()=>e("span",{class:"demonstration"},"Switch when indicator is hovered (default)",-1)),b={class:"small justify-center",text:"2xl"},B={class:"block text-center",m:"t-4"},j=_(()=>e("span",{class:"demonstration"},"Switch when indicator is clicked",-1)),I={class:"small justify-center",text:"2xl"},C=f({__name:"Base",setup(s){const u=x(`
<template>
  <div class="block text-center">
    <span class="demonstration"
      >Switch when indicator is hovered (default)</span
    >
    <el-carousel height="150px">
      <el-carousel-item v-for="item in 4" :key="item">
        <h3 class="small justify-center" text="2xl">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
  </div>
  <div class="block text-center" m="t-4">
    <span class="demonstration">Switch when indicator is clicked</span>
    <el-carousel trigger="click" height="150px">
      <el-carousel-item v-for="item in 4" :key="item">
        <h3 class="small justify-center" text="2xl">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<style scoped>
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
`);return(p,N)=>{const r=d("el-carousel-item"),n=d("el-carousel");return l(),c(i,null,[e("div",w,[S,a(n,{height:"150px"},{default:o(()=>[(l(),c(i,null,h(4,t=>a(r,{key:t},{default:o(()=>[e("h3",b,m(t),1)]),_:2},1024)),64))]),_:1})]),e("div",B,[j,a(n,{trigger:"click",height:"150px"},{default:o(()=>[(l(),c(i,null,h(4,t=>a(r,{key:t},{default:o(()=>[e("h3",I,m(t),1)]),_:2},1024)),64))]),_:1})]),k(p.$slots,"default",{html:u.value},void 0,!0)],64)}}}),F=y(C,[["__scopeId","data-v-3c9a8f2e"]]);export{F as default};
